{% extends 'base.html' %}

{% block head %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='auth.css') }}">
{% endblock %}

{% block content %}
<div class="auth-container">
    <div class="auth-header">
        <h2><i class="fas fa-hospital-user"></i> 登录</h2>
        <p class="auth-subtitle">欢迎使用医院管理系统</p>
    </div>
    <form method="post">
        <div class="form-group">
            <label for="username"><i class="fas fa-user"></i> 用户名</label>
            <input type="text" id="username" name="username" class="form-control" required
                   placeholder="请输入用户名" >
        </div>
        <div class="form-group">
            <label for="password"><i class="fas fa-lock"></i> 密码</label>
            <input type="password" id="password" name="password" class="form-control" required
                   placeholder="请输入密码" autocomplete="current-password">
        </div>
        <div style="text-align: center;">
            <button type="submit" class="btn btn-primary">
                <i class="fas fa-sign-in-alt"></i> 登录
            </button>
            <a href="{{ url_for('register') }}" class="btn btn-secondary">
                <i class="fas fa-user-plus"></i> 注册
            </a>
        </div>
    </form>

    <div class="auth-links">
        <a href="#" onclick="alert('请联系系统管理员重置密码')">忘记密码？</a>
    </div>
</div>
{% endblock %}